package top.easyblog.core.support.lock;

/**
 * 分布式锁抽象
 *
 * @version 1.0
 */
public interface DistributedLock {

    boolean lock() throws InterruptedException;

    void unlock();

    boolean isLock();

}
